package objects;

import tools.tools;

public class Station{


	public final String name = "RE56";
	//fixed data
	public final int[] uploadEtranBandLimit = {2500,2570} ;
	public final int[] downloadEtranBandLimit = {2620,2690} ; // Mhz
	//private double[] EtranBandAllocation = { 1.4, 3, 5, 15, 20 };
	public final static int etranBandAllocation = 20 ; // Mhz
	public final int etranBandAllocationRate = 20 ; // Mbit
	
	public int selectedLowerDownloadEtranBandLimit = tools.getRandomEUBrandwidth(downloadEtranBandLimit);
	public int selectedHigherDownloadEtranBandLimit = selectedLowerDownloadEtranBandLimit+etranBandAllocation;
	
	private final static double subcarrierSpacing = 0.015 ; // khz
	public static int numberSubcarrier = (int) (etranBandAllocation/subcarrierSpacing) ;
	public double ratePerSubcarrier = (1024*etranBandAllocationRate/numberSubcarrier)  ; // Kbit

	public int numberofphone;
	

	//Create station
	public Station(){
	}
	public int [] getUploadEtranBandLimit(){ 
		return this.uploadEtranBandLimit ;
	}
	
	public int [] getDownloadEtranBandLimit(){ 
		return this.downloadEtranBandLimit ;
	}

	public int getEtranBandAllocationRate(){ 
		return this.etranBandAllocationRate ;
	}
	
	public void setRatePerSubcarrier(double ratePerSubcarrier) {
		this.ratePerSubcarrier = ratePerSubcarrier;
	}
	public double getRatePerSubcarrier() {
		return ratePerSubcarrier;
	}

}
